<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>timer butten</title>
  <link rel="stylesheet" href="./layout.css">
</head>
<body>
<input type="button" id="add" value="添加定时器按钮"><hr>
<input type="button" id="del" value="删除定时器按钮"><hr>
<div id="test">
<!--<input type="button">-->
</div>
<script src="//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="//cdn.bootcss.com/echarts/4.0.2/echarts.min.js"></script>
<script src="./main.js"></script>
<script>
$(() => {
  let $btnAdd = $('#add'),
      $btnDel = $('#del');
  $btnAdd.click(() => {
    console.log('1');
    $timerBtn.show({
      container: '#test',
      title: '同意'
    });
  });

  $btnDel.click(() => {
    $timerBtn.destory();
    })
});
</script>
</body>
</html>
